package com.own.demo.数据转换;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.own.demo.utils.FileToStringUtils;
import com.own.demo.writerfile.WriterFileUtils;

import java.io.File;

public class 空管部门 {
    public static void main(String[] args) {
        File geoZJ = new File("E:\\ownCode\\UMA\\数据\\数据static\\blankpipe.json");
        String geoData = FileToStringUtils.txt2String(geoZJ);
        JSONObject jsonObject=JSONObject.parseObject(geoData);
        JSONArray vertipad=jsonObject.getJSONArray("data");
        WriterFileUtils.writerFoFile(JSONObject.toJSONString(vertipad),"E:\\ownCode\\UMA\\数据\\数据static\\成功数据","blankpipe.json");
    }
}
